I got a request from a Delphi user on how to simply internationalize his hint strings. This is an example of using resource strings. I thought this might be of interest to other people out there as well so here it is.
You will probably want to use Resource Workshop or some other resource editor to manage the strings. Both of the examples use the Tag property of the component as the string resource ID.
HINT1
-----
HINT1 shows how to set the Hint property using a string resource which is part of the EXE.
Advantage:
You only have one EXE file for your application.
Disadvantage:
You have to maintain multiple versions of your EXE.
HINT2
-----
HINT2 shows how to set the Hint property using a string resource which is part of a DLL. HINT2 uses HINTDLL.DLL as the source for strings.
Advantage:
You only have one EXE file to maintain. You can create multiple string resource DLLs and have a variable in your programs INI file that determines which DLL to use.
Disadvantage:
You will have to ship an aditional DLL with your application.
HINTDLL
-------
HINTDLL is a resource only DLL. There is no code in the DLL - although there is a dummy unit since Delphi complained when I didn't have a uses clause in the project file.
I have made every effort to ensure these examples are free of bugs, but you never know. Use them at your own risk! In other words - Do what you want with them, but don't blame me.
All questions, comments and criticisms are welcome!